<h5>画像情報の編集</h5>
<%= form_for(@image, :url => {:action => :update}, :html => {:multipart => true}) do |f| %>
  <!-- p>
    <%#= file_column_field "image", "filename" %>
    <input name="attachment" type="file" />
  </p -->
  <%= f.hidden_field(:id) %>
  <p>
    画像タイプ
    <%= f.select(:image_type, MasterImageType.all.collect { |i| [i.name, i.id] }) %>
  </p>
  <p>
    蔵元
    <%= f.select(:maker, Maker.order(:name_yomi).all.collect { |i| [i.name, i.id] }, :include_blank => true) %>
  </p>
  <p>
    銘柄
  <%= f.select(:production, Product.order(:name_yomi).all.collect { |i| [i.name, i.id] }, :include_blank => true) %>
  </p>
  <p>
    備考<br />
    <%= f.text_area :remarks, :rows => 10 %>
  </p>
  <p>
    <%= f.submit '登録' %>
  </p>
  <p>
  	<%= raw('<img src="/images/image/thumb/' + @image.id.to_s + '.jpg" alt=' + @image.id.to_s + ' align="center" />') %>
  	<%= raw('<img src="/images/image/middle/' + @image.id.to_s + '.jpg" alt=' + @image.id.to_s + ' align="center" />') %>
  	<%= raw('<img src="/images/image/big/' + @image.id.to_s + '.jpg" alt=' + @image.id.to_s + ' align="center" />') %>
  	<%= raw('<img src="/images/image/' + @image.id.to_s + '.jpg" alt=' + @image.id.to_s + ' align="center" />') %>
  </p>
<% end %>

